home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
System Booster
/
System Booster.iso
/
Archives
/
ForCLI
/
0Utils13.lha
/
0Utils
/
VolName.doc
< prev
next >
Wrap
Text File
|
1995-03-20
|
972b
|
57 lines
NAME
VolName
SYNOPSIS
VolName - get the Volumename of a file - Requires v37
INPUTS
FILE/A,VOLUME/S,DEVICE/S
FUNCTION
VolName gets a filename and evaluates its
Volumename.
If VOLUME is selected, we call GetNameFromLock
and evaluate the Volumename from that string
If DEVICE is selected, we try to get the
Devicename instead of the Volumename.
DEVICE hides VOLUME.
The resulting string is sent to STDOUT.
RESULT
the volumename of the file, or empty string
if information can not be found
NOTES
CLI - only
should compile with SAS-C
BUGS
We use 'Lock' to check the file, so an exclusively
locked or non existant file is not recognized, if
one of the flags is given.
EXAMPLES
(we are assuming You use a unmodified Workbench)
>VolName ENV:Sys
ENV:
>VolName ENV:Sys VOLUME
Ram Disk:
>VolName ENV:Sys DEVICE
RAM:
AUTHOR
Bernd Noll, Brunnenstrasse 55, D-67661 Kaiserslautern
noll@student.uni-kl.de